import os
import time
source =  [r'D:/demo',r'D:/']
target_dir = 'D:/'

target = target_dir + time.strftime('%Y%m%d%H%M%S') + '.zip'
zip_command = "zip -qr '%s' %s" % (target, ' '.join(source))
if os.system(zip_command) == 0:
    print 'successful backup',target
else:
    print 'backup failed'